package com.miyouke.chat.entity.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author Administrator
 */

@AllArgsConstructor
@Getter
public enum AppStatusEnum {

    OPEN(1,"开启"),
    CLOSE(0,"关闭");;

    private Integer code;
    private String desc;

    public static boolean contents(Integer isAccept) {

        if(isAccept == 0 || isAccept == 1){
            return true;
        }
        return false;
    }
}
